<div class="am-padding am-text-center">
    <h1 class="am-margin-0" style="font-size: 4rem;">￥{$getData.amount}</h1>
</div>
<div class="dux-box">
    <form class="am-form dux-form dux-form-right">
        <div class="am-input-group">
            <span class="am-input-group-label">订单号</span>
            <div class="am-form-content">{$getData.order_no}</div>
        </div>
        <div class="am-input-group">
            <span class="am-input-group-label">商品名</span>
            <div class="am-form-content">{$getData.subject}</div>
        </div>
        <div class="am-input-group">
            <span class="am-input-group-label"></span>
            <div class="am-form-content"><span class="am-text-warning">请在微信内扫描以下二维码继续支付</span></div>
        </div>
    </form>
</div>
<div class="am-padding dux-box am-text-center">
    <div id="code"></div>
    <div class="am-margin-top">长按保存图片</div>
</div>


<script type="text/javascript" charset="utf-8">
    $('#code').qrcode('{$shareUrl}');
    function convertCanvasToImage(canvas) {
        var image = new Image();
        image.src = canvas.toDataURL("image/png");
        return image;
    }
    var mycanvas1=document.getElementsByTagName('canvas')[0];
    var img=convertCanvasToImage(mycanvas1);
    $('#code').html("");
    $('#code').append(img);

</script>